package spec.wangxiuying.outclass;

public class Bjx extends Animal implements IAnimal {
String dongmian;
Bjx(String name,String food,String area,String dongmian){
    super.name=name;
    super.food=food;
    super.area=area;
    this.dongmian=dongmian;
}
    @Override
    String findfood() {return name+"找"+food;}


    @Override
    String wholelife() {
        String b=born();
        String f=findfood();
        String e=super.eat();
        String o=old();
        String s=sick();
        String d=die();
        return b+f+e+o+s+d;
    }

    @Override
    public String born() {return name+"生于"; }

    @Override
    public String old() {return name+"老"; }

    @Override
    public String sick() {return name+"生病"; }

    @Override
    public String die() { return name+"死于";}
}
